package com.xiaomiMall.mange.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/** 该对象暂时只适用于商城钱包充值 */
public class Notepad extends BaseEntity {

    /** 消息列表的id */
    private Long id;

    /** 发送人的id,一般指商城用户 */
    private Long senderId;

    /** 发送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    /** 消息内容  */
    private String message;

    /** 消息状态,0为已提交，1为已接受(批准)，2为已拒绝 */
    private int status;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSenderId() {
        return senderId;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Notepad() {
    }

    public Notepad(Long id, Long senderId, Date sendTime, String message, int status) {
        this.id = id;
        this.senderId = senderId;
        this.sendTime = sendTime;
        this.message = message;
        this.status = status;
    }

    @Override
    public String toString() {
        return "Notepad{" +
                "id=" + id +
                ", senderId=" + senderId +
                ", sendTime=" + sendTime +
                ", message='" + message + '\'' +
                ", status=" + status +
                '}';
    }
}
